//
//  BHApplyGroupLimitCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/16.
//

import UIKit

class BHApplyGroupLimitCell: UITableViewCell {
    
    lazy var place_view: UIView = {
        let view = UIView.init()
        view.backgroundColor = .color_f8f8f8
        return view
    }()
    
    lazy var limit_label: UILabel = {
        let label = UILabel.init()
        label.textColor = .color_999999
        label.font = .systemFont(ofSize: 12, weight: .medium)
        return label
    }()

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.selectionStyle = .none
        self.contentView.addSubview(self.place_view)
        self.contentView.addSubview(self.limit_label)
        
        self.place_view.mas_makeConstraints { (make) in
            make?.left.mas_equalTo()(16)
            make?.top.mas_equalTo()(10)
            make?.right.equalTo()(self)?.offset()(-16)
            make?.bottom.equalTo()(self)?.offset()(-10)
        }
        
        self.limit_label.mas_makeConstraints { (make) in
            make?.left.equalTo()(self.place_view)?.offset()(17)
            make?.bottom.top()?.equalTo()(self.place_view)
            make?.right.equalTo()(self.place_view)?.offset()(-17)
        }
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
